package com.sunfeng.chap4.test2_1;

import java.io.IOException;
import java.net.ServerSocket;
import java.util.concurrent.TimeUnit;

/**
 * @description:
 * @author: 孙 峰
 * @time: 2020/11/9 19:30
 */
public class Server {
    public static void main(String[] args) throws IOException, InterruptedException {
        ServerSocket socket = new ServerSocket(8088);
        socket.accept();
        TimeUnit.SECONDS.sleep(Integer.MAX_VALUE);
        socket.close();
    }
}
